<?php use_helper('Date'); ?>
<h1>Bookmarks List</h1>

<table id="bookmarksList">
  <tbody>
    <?php foreach ($bookmarks as $bookmark): ?>
    <tr>
      <td><?php echo format_date($bookmark->getCreatedAt(), 'p') ?></td>
      <td><?php echo link_to($bookmark->getDescription(), $bookmark->getUrl(), array('popup' => 'true')) ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

<script type="text/javascript">stripe("bookmarksList");</script>
<a href="<?php echo url_for('bookmark/new') ?>">New</a>
